<?php
/**
 * 属性类型模型
 * Created by PhpStorm.
 * User: xiangpeng
 * Date: 2016/12/26
 * Time: 9:05
 */

namespace Common\Model;


class TypeattrModel extends BaseModel
{
    //主键
    protected  $pk = 'taid';
    //要操作那张表
    protected $tableName ='type_attribute';
    //自动验证
    protected $_validate =[
        ['name','require','属性名称不能为空',1,3],
        ['type','require','属性类型不能为空',1,3],
        ['value','require','属性值不能为空',1,3],
    ];
}